<?php foreach ($categories as $category) : ?>
<link rel="alternate" type="application/atom+xml" title="<?php echo $category->getName() ?>" href="<?php echo url_for('rss_category_last_posts', array('category' => $category->getShortSlug(), 'sf_format' => 'atom'), true) ?>" />
<?php endforeach ?>